package com.dxy.controller;

import com.dxy.domain.User;
import com.dxy.exception.MyException;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;



@Controller
@RequestMapping(path = "/he")
public class Hello {
    @RequestMapping(path = "/upload")
    public String upload(User u) throws MyException {
        try {
			System.out.println("git测试");
            System.out.println(u);
            int i=9/0;
        } catch (Exception e) {
            e.printStackTrace();
            throw new MyException("您的网络不给力啊");
        }
        return "success";
    }
}
